package com.probox.modules.controller.system;

import com.probox.common.core.web.controller.BaseController;
import com.probox.common.core.web.domain.AjaxResult;
import com.probox.common.entity.service.customer.ICustomerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 工作台接口
 */
@RestController
@RequestMapping("/work")
public class WorkbenchController extends BaseController {



    @Autowired
    private ICustomerInfoService customerInfoService;




    /**
     * 手机号模糊查询
     *
     * @param phone
     * @return
     */
    @GetMapping("/listPhone")
    public AjaxResult listPhone(@RequestParam(value = "name") String phone) {
        return AjaxResult.success(customerInfoService.listPhone(phone));
    }



}
